﻿<Window x:Class="Client.Wpf.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:viewModels="clr-namespace:Client.Wpf.ViewModels"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        d:DataContext="{d:DesignInstance Type=viewModels:MainWindowVM, IsDesignTimeCreatable=True}"
        Title="MainWindow"
        Height="350"
        Width="525">
  <Grid>
    <TextBox x:Name="Text"
             HorizontalAlignment="Left"
             Height="23"
             TextWrapping="Wrap"
             Text="TextBox"
             VerticalAlignment="Top"
             Width="120"
             Margin="10,10,0,0" />
    <Button Content="Button"
            HorizontalAlignment="Left"
            VerticalAlignment="Top"
            Width="75"
            Margin="10,38,0,0"
            Command="{Binding SendMessage}"
            CommandParameter="{Binding ElementName=Text, Path=Text}" />
    <TextBlock HorizontalAlignment="Left"
               TextWrapping="Wrap"
               Text="{Binding Result}"
               VerticalAlignment="Top"
               Margin="10,63,0,0" />
    <Button Content="Button"
            HorizontalAlignment="Left"
            VerticalAlignment="Top"
            Width="75"
            Margin="110,38,0,0"
            Click="Button_Click" />
  </Grid>
</Window>